<tagLib name="html" />
<include file="Public:header" />
	<div style="width:100%; height:15px;color:#000;margin:0px 0px 10px;">
	  <div style="float:left;"><a href="__ROOT__" target="main"><b>控制面板首页</b></a>&nbsp;&raquo;&nbsp;订单列表</div>
	</div>
	<table cellspacing="1" cellpadding="4" width="100%" align="center" style="border: 0 none !important; border-collapse: separate !important;empty-cells: show;margin-bottom: 0px;">
		<tr class="header" align="center">
			<td width="15%" class="center">购买产品名字</td>
			<td  width="10%" class="center">购买数量</td>
			<td  width="10%" class="center">购买人姓名</td>
			<td  width="15%" class="center">购买人邮箱</td>
			<td  width="10%" class="center">购买人电话</td>
			<td  width="15%" class="center">购买时间</td>
			<td  width="10%" class="center">查看详细</td>
			<td  width="5%" class="center">删除</td>
			<td  width="10%" class="center">是否已发货</td>
		</tr>
	</table>
    <input type="hidden" name="hiddencid" value="{$pid}"/>
	<ul id="list">
		<if condition="$list neq NULL">
			<volist name="list" id="vo">
				<li style="list-style:none;">
					<table  id="table1" cellspacing="1" cellpadding="4" width="100%" align="center" style="border: 0 none !important; border-collapse: separate !important;empty-cells: show;margin-bottom: 0px;"> 
						<tr align="center" class="smalltxt">
							<td width="15%" class="altbg1 center">{YICMS:$vo.title|msubstr=###,0,10}</td>
							<td width="10%" class="altbg2 center">{YICMS:$vo.number}</td>
							<td width="10%" class="altbg1 center">{YICMS:$vo.name}</td>
							<td width="15%" class="altbg2 center">{YICMS:$vo.email}</td>
							<td width="10%" class="altbg1 center">{YICMS:$vo.phone}</td>
							<td width="15%" class="altbg2 center">{YICMS:$vo.time|switchtime=###}</td>
							<td width="10%" class="altbg1 center"><a href="{YICMS::U('Buy/edit?id='.$vo['id'])}" style="background:url(../Public/Images/admin/edit.png) no-repeat center center;padding:0px 20px;">&nbsp;</a></td>
							<td width="5%" class="altbg2 center"><a href="{YICMS::U('Buy/del?id='.$vo['id'])}" onclick="return confirm('提示：您确定要删除该订单吗？不可恢复！')" style="background:url(../Public/Images/admin/remove.png) no-repeat center center;padding:0px 20px;">&nbsp;</a></td>
							<td width="10%" class="altbg1 center">
								<if condition="$vo.state eq 0">
									<a href="{YICMS::U('Buy/stop?id='.$vo['id'].'&state=1')}" style="color:red">点击显示已发货</a>
								<else />
									<a href="{YICMS::U('Buy/stop?id='.$vo['id'].'&state=0')}" style="color:red">点击显示未发货</a>
								</if>
							</td>
						</tr>
					</table>
				</li>
			</volist>
		<else />
			<li>
				<table  id="table1" cellspacing="1" cellpadding="4" width="100%" align="center" style="border: 0 none !important; border-collapse: separate !important;empty-cells: show;margin-bottom: 0px;"> 
					<tr align="center" class="smalltxt">
						<td class="altbg1" style="text-align:center;font-weight:bold;color:#E01558;padding:10px 0px;">暂时没有订单!^_^</td>
					</tr>
				</table>
			</li>
		</if>	
	</ul>
	<div class="page">{YICMS:$page}</div>
<br/>
<include file="Public:footer" />